GET
/
eligibilities
/
[BETA] List Eligibilities
curl --request GET \
  --url https://sandbox.prezio.eu/api/eligibilities/ \
  --header 'Authorization: <api-key>'
{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2",
  "results": [
    {
      "id": 123,
      "key": "<string>",
      "question": {
        "id": 123,
        "key": "<string>",
        "display_question": "<any>",
        "data_type": "BOOLEAN",
        "choices": "<any>"
      },
      "conditions": [
        {
          "id": 123,
          "key": "<string>",
          "value": "<string>",
          "operator": "="
        }
      ],
      "is_default": true,
      "tariffs": [
        123
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Query Parameters

ordering
string

Which field to use when ordering the results.

page
integer

A page number within the paginated result set.

question__data_type
enum<string>

Data type for the eligibility input (e.g., BOOLEAN, CHOICE).

  • BOOLEAN - Boolean
  • CHOICE - Choice
  • DECIMAL - Decimal
  • DATE - Date
  • DEMAND - Demand
Available options:
BOOLEAN,
CHOICE,
DATE,
DECIMAL,
DEMAND

A search term.

Response

200 - application/json

The response is of type object.